<%@page import="gamble.member.dao.MemberDao"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="script/script.js"></script>
</head>
<body> 
  <%!
    String id;
    boolean chk;
  %>
  
  <%
    id=request.getParameter("id");
    MemberDao dao=MemberDao.getInstance();
    chk=dao.idMethod(id); 
    if(chk==true){
    	out.print(id+ " 이미 사용중인 아이디입니다.");
    %>
    <form name="frm" action="idCheck.jsp" method="post">
     <input type="text" name="id" size="20" />
     <input type="submit" value="아이디검색" />
    </form>
    <%
    }else{
    	out.print(id+ " 사용 가능한 아이디입니다.");
    %>
    <a href="#" onclick="javascript:send('<%=id%>')">닫기</a>
    <%
    }
    
  %>
  
</body>
</html>








